package com.hh.yygh.hosp.controller;


import com.hh.yygh.hosp.service.HospitalSetService;
import com.hh.yygh.model.hosp.Hospital;
import com.hh.yygh.model.hosp.HospitalSet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 医院设置表 前端控制器
 * </p>
 *
 * @author hh
 * @since 2023-04-10
 */
@RestController
@RequestMapping("/hosp/hospital-set")
public class HospitalSetController {

    @Autowired
    private HospitalSetService hospitalSetService;


    //http://localhost:8201//hosp/hospital-set/findAll
    @GetMapping("/findAll")
    public List<HospitalSet> findAll(){
        return hospitalSetService.list();
    }

}

